package top.korori.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import top.korori.common.model.PageData;
import top.korori.common.model.Result;
import top.korori.sv.entity.bo.SysSvWorkBo;
import top.korori.sv.entity.vo.SysSvWorkVo;
import top.korori.sv.service.SvWorkService;

@Api(tags = "作品管理")
@RestController
@RequestMapping("video/work")
public class SvWorkController {

    @Autowired
    private SvWorkService workService;

    @ApiOperation("作品列表查询")
    @GetMapping("/getList")
    public Result<PageData<SysSvWorkVo>> getList(SysSvWorkBo svWorkBo){
        PageData<SysSvWorkVo> pageData = workService.getSysList(svWorkBo);
        return Result.ok(pageData);
    }

}
